<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var a = prompt("1.登录2.退出");
			switch (a) {
				case "1":
					//登录
					//系统功能
					var arr = [];
					var index = 0;
					do {
						// var index = 0;
						var b = prompt("1.添加2.删除3.遍历4.修改5.退出");
						switch (b) {
							case "1":
								var stuNo = prompt("请输入学号");
								var stuName = prompt("请输入姓名");
								arr[index] = stuNo + stuName;
								index++;
								break;
							case "2":
								break;
							case "3":
								// alert(stuNo);
								// alert(stuName);
								for (var i = 0; i < arr.length; i++) {
									alert(arr[i]);
								}
								break;
							case "4":
								break;
							case "5":
								break;
						}
					} while (true);
					break;
				case "2":
					break;
			}
		</script>
	</head>
	<body>
	</body>
</html>
